package com.stx.test;

/**
 * packageName com.stx.test
 *
 * @author YangYi
 * @className PersonDemo
 * @date 2025/9/10
 * @description TODO
 */
public class PersonDemo {
    public static void main(String[] args) {
        // 之前声明类型
        int i;
        int[] array;
        Person person = new Person();//new 进行内存的分配，画图
        person.name = "小芳";
        person.age = 18;
        person.weight = 100;
        person.height = 16.8;
        person.eat();
        person.playGame();
        person.introduce();

        Person person1 = new Person();
        person1.name = "老王";
        person1.age = 38;
        person1.weight = 150;
        person1.height = 170;
        person1.eat();
        person1.playGame();
        person1.introduce();
    }
}
